package yuandaima;
class Simulator {  
 public void playSound(Animal animal) {  
     System.out.print(animal.getAnimalName() + " says: ");  
     animal.cry();  
 }  
}